﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SmApiLibrary.datatypes.Interface;
using SmApiLibrary.helps;

namespace SmApiLibrary.datatypes.Interface
{
    public class IDirectMessage
    {
        public IDirectMessage()
        { }

        public string id { get; set; }
        public string text { get; set; }
        public string sender_id { get; set; }
        public string recipient_id { get; set; }
        private string _createAt;
        public string created_at
        {
            get { return _createAt; }
            set
            {
                _createAt = JsonHelper.FormatJsonDateTime(value);

            }
        }
        public string sender_screen_name { get; set; }
        public string recipient_screen_name { get; set; }
        public IUser sender
        {
            get;
            set;
        }


        public IUser recipient
        {
            get;
            set;
        }

        #region IDataTypeBase 成员

        public virtual SmApiLibrary.libs.WeiBoType WeiboType
        {
            get;
            set;
        }
        #endregion
    }
}
